//
//  Weapon.h
//  SpaceStorm
//
//  Created by 祥 雍 on 13-4-26.
//  Copyright (c) 2013年 __MyCompanyName__. All rights reserved.
//
//  武器的模型类


#import "cocos2d.h"
#import "WeaponView.h"
#import "WeaponFSM.h"

@interface Weapon : CCNode
{
    int _equipId;
    BOOL _isTeam;
    WeaponViewBase* _view;
    WeaponFSMManager * _fsmManage;
    int updateCount;
}

+(id) weaponWithId:(int) equipId;
-(id) initWithId:(int) equipId;

-(void) doFire;

//装备的属性
@property (readwrite) int equipId;                              //武器的id
@property (readwrite) BOOL isTeam;                              //是不是队伍
@property (readwrite, retain) WeaponViewBase* view;                 //武器的视图
@property (readwrite, retain) WeaponFSMManager* fsmManage;      //武器的状态机

@end
